import { axios } from '@/utils/request'

/**
 * 违章工龄
 * @param {*} parameter
 * @returns
 */
export function getVioWorkYearsAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/WorkYearAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioWorkYearsTypeDefectAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/ViolationWorkYearsTypeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 通用/专业
 * @param {*} parameter
 * @returns
 */
export function getVioCategoryAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/ViolationWorkYearsTypeCategoryAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 各专业违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioWorkSpecialtyAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/WorkSpecialityAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 各年龄段违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioAgeAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/AgeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 用工性质违章性质
 * @param {*} parameter
 * @returns
 */
export function getVioEmployeeTypeAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/EmployeeTypeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 人的不安全行为/管理缺陷
 * @param {*} parameter
 * @returns
 */
export function getVioUnsafeFactorsAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/UnsafeFactorsAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 人的不安全行为
 * @param {*} parameter
 * @returns
 */
export function getVioUnsafeBehaviorAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/UnsafeBehaviorAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 管理缺陷
 * @param {*} parameter
 * @returns
 */
export function getVioManageDefectAnalysis (parameter) {
  return axios({
    url: '/QHSEViolationWorkYearsAnalysisController/ManagementDeficienciesAnalysis',
    method: 'post',
    data: parameter
  })
}
